package com.allin.mall.common.redis.service;


import java.util.concurrent.TimeUnit;

public interface RedisDistributedLock {

    boolean tryLock(String key, TimeUnit unit, long time);

    void lock(String key, TimeUnit unit, long time);

    boolean unlock(String key);
}
